Metamorphic Technique in Two Gates